package puzzle.game.project;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Random;

import android.app.Activity;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore.Images;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;
import android.widget.TextView;

public class PlayGame extends Activity  {
	
	public PlayView tileView;
			
	private static final int SHUFFLE = Menu.FIRST;
	private static final int GAMEEND = Menu.FIRST + 1;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		tileView = new PlayView(this);
		setContentView(tileView);
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
		menu.add(0, SHUFFLE, 0, R.string.pgmenu_shuffle);
		menu.add(0, GAMEEND, 0, R.string.pgmenu_gameend);
		return true;
	}

	@Override
	public boolean onMenuItemSelected(int featureId, MenuItem item) {
		// TODO Auto-generated method stub
		
		switch(item.getItemId()) {
		case SHUFFLE:
			
			return true;
		}
		return super.onMenuItemSelected(featureId, item);
	}
}